// 车主车辆导入
//import CrmCarCom from './components/CrmCarCom'
const CrmCarCom = resolve => {
        require.ensure(['./components/CrmCarCom'], () => {
            resolve(require('./components/CrmCarCom'))
        })
    }
const CrmCardCom = resolve => {
    require.ensure(['./components/CrmCardCom'], () => {
        resolve(require('./components/CrmCardCom'))
    })
}
    //延保
    //import CarExendanceCom from './components/CarExendanceCom'
const CarExendanceCom = resolve => {
    require.ensure(['./components/CarExendanceCom'], () => {
        resolve(require('./components/CarExendanceCom'))
    })
}

//续保
//import CarInStanceCom from './components/CarInStanceCom'
const CarInStanceCom = resolve => {
    require.ensure(['./components/CarInStanceCom'], () => {
        resolve(require('./components/CarInStanceCom'))
    })
}

// 维修业务工单
//import MaitaninOrderCom from './components/MaitaninOrderCom'
const MaitaninOrderCom = resolve => {
        require.ensure(['./components/MaitaninOrderCom'], () => {
            resolve(require('./components/MaitaninOrderCom'))
        })
    }
    //工单查询
    //import WorkorderQueryCom from './components/WorkorderQueryCom'
const WorkorderQueryCom = resolve => {
    require.ensure(['./components/WorkorderQueryCom'], () => {
        resolve(require('./components/WorkorderQueryCom'))
    })
}

//工单项目明细查询
const WorkItemQueryCom = resolve => {
        require.ensure(['./components/WorkItemQuery'], () => {
            resolve(require('./components/WorkItemQuery'))
        })
    }
    // 销售数据查询
const CarSalesDataQueryCom = resolve => {
    require.ensure(['./components/CarSalesDataQuery'], () => {
        resolve(require('./components/CarSalesDataQuery'))
    })
}


//车主车辆表
//import carOwnerTableCom from './components/carOwnerTable'
const carOwnerTableCom = resolve => {
        require.ensure(['./components/carOwnerTable'], () => {
            resolve(require('./components/carOwnerTable'))
        })
    }

// 卡信息预览
const cardPreviewCom = resolve => {
        require.ensure(['./components/cardPreview'], () => {
            resolve(require('./components/cardPreview'))
        })
    }
    //维修项目
    //import MaitaninItemCom from './components/MaitaninItemCom'
const MaitaninItemCom = resolve => {
        require.ensure(['./components/MaitaninItemCom'], () => {
            resolve(require('./components/MaitaninItemCom'))
        })
    }
    //销售车辆
    //import CarSaleCom from './components/CarSaleCom'
const CarSaleCom = resolve => {
        require.ensure(['./components/CarSaleCom'], () => {
            resolve(require('./components/CarSaleCom'))
        })
    }
    //车辆分配明细导入
    //import carMingxi from './components/car/carMingxi'
const carMingxi = resolve => {
    require.ensure(['./components/carMingxi'], () => {
        resolve(require('./components/carMingxi'))
    })
}
const datacenterRouter = [
    //工单查询
    {
        path: 'data/workorderQuery',
        component: WorkorderQueryCom
    },
    // 工单项目明细查询
    {
        path: 'data/WorkItemQuery',
        component: WorkItemQueryCom
    },
    // 销售数据查询
    {
        path: 'data/CarSalesDataQuery',
        component: CarSalesDataQueryCom
    },
    {
        path: 'data/carOwnerTable',
        component: carOwnerTableCom
    },
    {
        path: 'data/cardPreview',
        component: cardPreviewCom
    },
    
    // 车主车辆导入
    {
        path: 'data/car',
        component: CrmCarCom
    },
	// 卡信息导入
    {
        path: 'data/card',
        component: CrmCardCom
    },
    // 车辆销信息导入
    {
        path: 'data/sale',
        component: CarSaleCom
    },
    // 维修业务导入
    {
        path: 'data/order',
        component: MaitaninOrderCom
    },

    // 维修项目导入
    {
        path: 'data/item',
        component: MaitaninItemCom
    },
    //续保导入
    {
        path: 'data/xb',
        component: CarInStanceCom
    },
    //延保导入
    {
        path: 'data/yb',
        component: CarExendanceCom
    },
    //车辆明细导入
    {
        path: 'data/carMingxi',
        component: carMingxi
    },
];

export default datacenterRouter